/**
  ******************************************************************************
  * @file 
  * @brief 
  * @author taoye
  * @version V1.0.0
  * @date 2021/01/01
  ******************************************************************************
  */
#ifndef _DRV_F4_FLASH_H
#define _DRV_F4_FLASH_H 

#include "drv_include.h"

/* private config -----------------------------------------------------------*/
typedef struct
{
    uint8_t data;
}flash_private_t;

/* Public defines -----------------------------------------------------------*/
typedef struct  drv_flash            drv_flash_t;

/* Public enum    -----------------------------------------------------------*/

/* Public Struct  -----------------------------------------------------------*/
struct drv_flash
{
    /* ***************Public Parameter  *************** */


    /* ***************Public Method     *************** */
    int ( *Write ) ( drv_flash_t *, uint32_t, uint8_t *, uint32_t );
    int ( *Read  ) ( drv_flash_t *, uint32_t, uint8_t *, uint32_t );
    int ( *Erase ) ( drv_flash_t *, uint32_t, uint32_t );

    /* ***************Private Attributes*************** */
    flash_private_t  private;
};


/* Public Variable  ---------------------------------------------------------*/
//Pointer

//Array

//Const



/* Pubilc function prototypes -----------------------------------------------*/
int Drv_Flash_Init( drv_flash_t *this );
	
#endif


